$OpenBSD: patch-conserver_Makefile_in,v 1.4 2014/09/08 16:12:11 sthen Exp $
--- conserver/Makefile.in.orig	Fri Sep 13 23:46:53 2013
+++ conserver/Makefile.in	Tue Sep  2 20:29:22 2014
@@ -37,7 +37,7 @@ CONSERVER_HDRS = ../config.h $(top_srcdir)/compat.h $(
 		 $(srcdir)/group.h $(srcdir)/main.h $(srcdir)/master.h \
 		 $(srcdir)/readcfg.h $(srcdir)/version.h
 
-ALL = conserver convert
+ALL = conserver conserver-convert
 
 
 all: $(ALL)
@@ -47,8 +47,8 @@ $(CONSERVER_OBJS): $(CONSERVER_HDRS)
 conserver: $(CONSERVER_OBJS)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o conserver $(CONSERVER_OBJS) $(LIBS)
 
-convert: convert.o cutil.o
-	$(CC) $(CFLAGS) $(LDFLAGS) -o convert convert.o cutil.o $(LIBS)
+conserver-convert: convert.o cutil.o
+	$(CC) $(CFLAGS) $(LDFLAGS) -o conserver-convert convert.o cutil.o $(LIBS)
 
 .c.o:
 	$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
@@ -60,13 +60,9 @@ distclean: clean
 	rm -f Makefile conserver.rc
 
 install: conserver
-	$(MKDIR) $(DESTDIR)$(sbindir)
-	$(INSTALL_PROGRAM) conserver $(DESTDIR)$(sbindir)
-	$(MKDIR) $(DESTDIR)$(mandir)/man8
-	$(INSTALL) -m 0644 conserver.man $(DESTDIR)$(mandir)/man8/conserver.8
-	$(MKDIR) $(DESTDIR)$(exampledir)
-	$(INSTALL) conserver.rc $(DESTDIR)$(exampledir)
-	$(MKDIR) $(DESTDIR)$(pkglibdir)
-	$(INSTALL) convert $(DESTDIR)$(pkglibdir)/convert
+	$(BSD_INSTALL_PROGRAM) conserver $(DESTDIR)$(sbindir)
+	$(BSD_INSTALL_MAN) conserver.man $(DESTDIR)$(mandir)/man8/conserver.8
+	$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(exampledir)
+	$(BSD_INSTALL_PROGRAM) conserver-convert $(DESTDIR)$(sbindir)
 
 .PHONY: clean distclean install
